package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.po.AdminWithdrawConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.req.config.DeleteExtractConfigReq;
import com.letoken.platform.repo.admin.res.config.QueryExtractConfigByIdRes;
import com.letoken.platform.repo.admin.res.config.QueryExtractConfigRes;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 提现配置 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
public interface AdminWithdrawConfigMapper extends BaseMapper<AdminWithdrawConfig> {

    Page<QueryExtractConfigRes> queryExtractConfigList(@Param("page") Page<QueryExtractConfigRes> page, @Param("tokenId") Integer tokenId);

    AdminWithdrawConfig queruConfigByTokenId(@Param("tokenId")Integer tokenId);

    Boolean deleteWithdraw(@Param("req") DeleteExtractConfigReq req);

    QueryExtractConfigByIdRes queryExtractConfigById(@Param("id") Integer id);
}
